package com.ttc.group2.videochat;

import android.app.Application;

import com.quickblox.core.QBSettings;
import com.quickblox.users.model.QBUser;
import com.ttc.group2.videochat.utils.Const;

public class VideoChatApplication extends Application {

	private QBUser currentUser;

	@Override
	public void onCreate() {
		super.onCreate();
		
		// Authentication with application
		QBSettings.getInstance().fastConfigInit(Const.APP_ID, Const.AUTH_KEY,
				Const.AUTH_SECRET);
	}

	public void setCurrentUser(int userId, String userPassword) {
		this.currentUser = new QBUser(userId);
		this.currentUser.setPassword(userPassword);
	}

	public QBUser getCurrentUser() {
		return currentUser;
	}

}
